package com.dawn.module.hospital.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * @description:
 * @author: cnsu-cmh
 * @time: 2024/8/7 22:47
 */
public class RandomUtils {

    public static String buildRandomStr(int randomLength){
        Random random = new Random ();
        SimpleDateFormat sdf=new SimpleDateFormat ("yyyyMMddHHmmssSSS");
        String str = sdf.format(new Date());
        for(int i=0;i<randomLength;i++){
            str += random.nextInt(10);
        }
        return str;
    }
}
